using System;
using System.Collections.Generic;
using System.Text;

namespace Colorprj.Masters
{
    class SubProduct
    {
        private int _SubProductId = -1;
        public int SubProductId
        {
            get
            {
                return _SubProductId;
            }
            set
            {
                _SubProductId = value;
            }
        }


        private double  _Stock = 0;
        public double Stock
        {
            get
            {
                return _Stock;
            }
            set
            {
                _Stock = value;
            }
        }


        private int _ProductId = -1;
        public int ProductId
        {
            get
            {
                return _ProductId;
            }
            set
            {
                _ProductId = value;
            }
        }

        private string _SubProductName = "";
        public string SubProductName
        {
            get
            {
                return _SubProductName;
            }
            set
            {
                if (string.IsNullOrEmpty(value.Trim()))
                {
                    throw new Exception("Sub Product Name Cant be empty");
                }
                else
                {
                    _SubProductName = value;
                }
            }
        }

        private string _ShortName = "";
        public string ShortName
        {
            get
            {
                return _ShortName;
            }
            set
            {
                if (string.IsNullOrEmpty(value.Trim()))
                {
                    throw new Exception("Short Name Cant be empty");
                }
                else
                {
                    _ShortName = value;
                }
            }
        }


        private double _OpBal = -1;
        public double OpBal
        {
            get
            {
                return _OpBal;
            }
            set
            {
                _OpBal = value;
            }
        }
        //private double _OpBal = -1;
        //public double OpBal
        //{
        //    get
        //    {
        //        return _OpBal;
        //    }
        //    set
        //    {
        //        _OpBal = value;
        //    }
        //}

        private double _PurRate = -1;
        public double PurRate
        {
            get
            {
                return _PurRate;
            }
            set
            {
                _PurRate = value;
            }
        }

        private double _SaleRate = -1;
        public double SaleRate
        {
            get
            {
                return _SaleRate;
            }
            set
            {
                _SaleRate = value;
            }
        }

        private string _Units = "";
        public string Units
        {
            get
            {
                return _Units;
            }
            set
            {
                _Units = value;
            }
        }
        private double _ReOrderLvl = 0;
        public double ReOrderLvl
        {
            get
            {
                return _ReOrderLvl;
            }
            set
            {
                _ReOrderLvl = value;
            }
        }
    }
}
